package com.canal.display.service.impl;

import com.canal.display.dao.ZcolChannelItemMapper;
import com.canal.display.service.ItemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author yangbo
 * @date 2020-07-31 9:35
 */
@Service
@Slf4j
public class ItemServiceImpl implements ItemService {

    @Autowired
    private ZcolChannelItemMapper zcolChannelItemMapper;

    @Override
    public List<Map<String, Object>> itemList(String term, Integer channelId) {
        return zcolChannelItemMapper.searchByKw(term,channelId);
    }
}
